import JsCookies from 'js-cookie'

class Cookies {
    constructor(name) {
        this.name = name
    }
    name = '';
    get() {
        return JsCookies.get(this.name)
    }
    getJson() {
        return JsCookies.getJson(this.name)
    }
    set(value) {
        if (!this.name) return;
        JsCookies.set(this.name, value)
    }
}

export default Cookies